package com.construction_Safety.region.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.construction_Safety.common.annotation.Excel;
import com.construction_Safety.common.core.domain.TreeEntity;

/**
 * 区域信息管理对象 c_region
 * 
 * @author yat
 * @date 2025-06-09
 */
public class CRegion extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 区域编号 */
    private Long id;

    /** 区域 */
    @Excel(name = "区域")
    private String name;

    /** 区域状态 */
    @Excel(name = "区域状态")
    private Integer regionStatus;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setRegionStatus(Integer regionStatus) 
    {
        this.regionStatus = regionStatus;
    }

    public Integer getRegionStatus() 
    {
        return regionStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("parentId", getParentId())
            .append("regionStatus", getRegionStatus())
            .toString();
    }
}
